Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing Extensions and Drivers /
Chapter 3 - Printer Drivers / Using Resources in Drivers


Resources for Compatibility With the Macintosh Printing Manager

You can customize the way that your driver supports Macintosh Printing Manager printing by defining a customization ('cust') resource. QuickDraw GX provides a default version, so this an optional resource.

The customization resource defines the resolution, translator settings for the driver, the pattern stretch factor, and how it translates Macintosh Printing Manager calls into QuickDraw GX printing messages. You can also fine tune the handling of certain geometries by the QuickDraw GX translator. The customization resource is described on page 6-47. The program that translates Macintosh Printing Manager calls to QuickDraw GX messages is described in Inside Macintosh: QuickDraw GX Environment and Utilities.

The customization resource from the ImageWriter II printer driver is shown in Listing 3-26.

Listing 3-26 The customization resource for the ImageWriter II printer driver

resource gxCustType (gxCustID, sysHeap, purgeable)
{
   144,144,                /* 300 dpi device */
   defaultUpDriver,        /* use LaserWriter interface */
   {2,2},                  /* pattern stretch of 2 */
   gxOptimizedTranslation  /* use default translator settings */
}

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help